<?
require_once('../code/Utils.php');
$outputWhenOK = '';
$outputWhenOK .= '<div style="text-align: left; style="font-family: Calibri,sans-serif">';
if (file_exists('../code/Saetze.txt'))
{
	$outputWhenOK .= file_get_contents('../code/Saetze.txt');
}
else
{
	$outputWhenOK .= 'Das Protokollfile konnte leider nicht gefunden werden.';
}
passwordCheck($outputWhenOK);
/*echo('<div style="text-align: center; style="font-family: Calibri,sans-serif">');
if (isset($_GET['text']))
{
	$enteredPassword = $_GET['text'];
	$enteredPasswordEncrypted = crypt($enteredPassword,'435fdsdg%65tDdsf');
	$originalPassword = '43pgdQDy7KY22';
	if ($enteredPasswordEncrypted == $originalPassword)
	{
		echo('<div style="text-align: left; style="font-family: Calibri,sans-serif">');
		if (file_exists('../code/Saetze.txt'))
		{
			$output = file_get_contents('../code/Saetze.txt');
			echo($output);
		}
		else
		{
			echo('Das Protokollfile konnte leider nicht gefunden werden.');
		}
	}
	else
	{
		echo('<BR>The entered Password is wrong, please try again.
			<form action="saetze.php">
				<BR><input type="password" id="FormsEditField1" name="text" size="32">
				<BR><input type="submit" id="FormsButton1" name="button" value="OK">
			</form>
		');
	}
}
else
{
echo('
	<BR>Please enter the Passwort in order to show the files
		<form action="saetze.php">
			<BR><input type="password" id="FormsEditField1" name="text" size="32">
			<BR><input type="submit" id="FormsButton1" name="button" value="OK">
		</form>'
	);
}
echo('</div>');*/
?>